﻿namespace KingerRobot.MexicoSailunMDC.SpiService;

internal interface IRcsEquipScanner
{
    /// <summary>
    /// 通过扫描仪设备ID获取
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    PORcsEquipScanner GetRcsEquipScannerById(long id);
    /// <summary>
    /// 通过扫描仪位置ID获取
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    PORcsEquipScanner GetRcsEquipScannerByLocId(long locId);

    /// <summary>
    /// 修改最后一次修改信息
    /// </summary>
    /// <param name="id"></param>
    /// <param name="materialId"></param>
    /// <param name="targetId"></param>
    /// <returns></returns>
    int UpdateRcsEquipScannerLastInfo(long id, long materialId, long targetId);
    /// <summary>
    /// 获取可以直运扫描仪
    /// </summary>
    /// <returns></returns>
    long GetDirectDeliveryEquipId();
    /// <summary>
    /// 修改设置直运时间
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    long UpdateDirectDeliveryTime(long id);
}
